New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import-boss reverse import #83526
import-boss reverse import #83526
Conversation
/priority important-longterm |
ffff7a9
to
058a140
Compare
/cc @sttts |
058a140
to
5a260fc
Compare
68c1285
to
cece51b
Compare
ping @liggitt |
"google.golang.org/api/tpu/v1", | ||
"golang.org/x/net/context", | ||
"google.golang.org/grpc" | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these removals look good to me. This is not the intended use of import-boss.
"k8s.io/utils/path", | ||
"k8s.io/utils/strings" | ||
] | ||
}, | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. k8s.io/utils is not a staging repo and we should not restrict use.
/lgtm |
/lgtm |
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
fef87de
to
bae4ff5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
@@ -109,7 +108,7 @@ func NewClusterAuthenticationTrustController(requiredAuthenticationData ClusterA | |||
return cast.Name == configMapName | |||
} | |||
if tombstone, ok := obj.(cache.DeletedFinalStateUnknown); ok { | |||
if cast, ok := tombstone.Obj.(*apiextensions.CustomResourceDefinition); ok { | |||
if cast, ok := tombstone.Obj.(*corev1.ConfigMap); ok { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's exciting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very exciting 😁
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: eloyekunle, liggitt, sttts The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@eloyekunle: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/retest
…On Wed, 29 Jan 2020, 01:38 Kubernetes Prow Robot, ***@***.***> wrote:
@eloyekunle <https://github.com/eloyekunle>: The following tests *failed*,
say /retest to rerun all failed tests:
Test name Commit Details Rerun command
pull-kubernetes-e2e-gce-iscsi 6aeee39
<6aeee39>
link
<https://prow.k8s.io/view/gcs/kubernetes-jenkins/pr-logs/pull/83526/pull-kubernetes-e2e-gce-iscsi/1216779292105510913/> /test
pull-kubernetes-e2e-gce-iscsi
pull-kubernetes-e2e-gce-alpha-features 6aeee39
<6aeee39>
link
<https://prow.k8s.io/view/gcs/kubernetes-jenkins/pr-logs/pull/83526/pull-kubernetes-e2e-gce-alpha-features/1216778788843556866/> /test
pull-kubernetes-e2e-gce-alpha-features
pull-kubernetes-e2e-gci-gce-autoscaling 6aeee39
<6aeee39>
link
<https://prow.k8s.io/view/gcs/kubernetes-jenkins/pr-logs/pull/83526/pull-kubernetes-e2e-gci-gce-autoscaling/1216779292105510914/> /test
pull-kubernetes-e2e-gci-gce-autoscaling
pull-kubernetes-kubemark-e2e-gce-big bae4ff5
<bae4ff5>
link
<https://prow.k8s.io/view/gcs/kubernetes-jenkins/pr-logs/pull/83526/pull-kubernetes-kubemark-e2e-gce-big/1222288609051152384/> /test
pull-kubernetes-kubemark-e2e-gce-big
Full PR test history
<https://prow.k8s.io/pr-history?org=kubernetes&repo=kubernetes&pr=83526>. Your
PR dashboard <https://gubernator.k8s.io/pr/eloyekunle>. Please help us
cut down on flakes by linking to
<https://git.k8s.io/community/contributors/devel/sig-testing/flaky-tests.md#filing-issues-for-flaky-tests>
an open issue
<https://github.com/kubernetes/kubernetes/issues?q=is:issue+is:open> when
you hit one in your PR.
Instructions for interacting with me using PR comments are available here
<https://git.k8s.io/community/contributors/guide/pull-requests.md>. If
you have questions or suggestions related to my behavior, please file an
issue against the kubernetes/test-infra
<https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:>
repository. I understand the commands that are listed here
<https://go.k8s.io/bot-commands>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#83526?email_source=notifications&email_token=ACVGJVOAZS7RX3Z4A6HBD3LRADFZJA5CNFSM4I5XHEMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKFRMCY#issuecomment-579540491>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACVGJVLRDUDR3UGL6JNNKBDRADFZJANCNFSM4I5XHEMA>
.
|
…e-import import-boss reverse import Kubernetes-commit: f5a0087
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR adds reverse import restrictions for packages by import-boss.
Reverse import restrictions help to define which packages in k/k can import certain other packages, defined inside the latter. This allows to have fine-grained import restrictions for "private packages" where we don't want to spread use inside of k/k.
The import-restrictions files added here specify that the
apiextensions-apiserver
package (and subpackages, exceptv1
andv1beta1
) should only be used in apiserver, and not anywhere else.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Ref: kubernetes/gengo#154
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
/sig api-machinery